package com.hc.conferencecheck.mapper;

import com.hc.conferencecheck.entity.AttendRecordBranch;
import com.hc.conferencecheck.entity.ConferenceAddress;
import com.hc.conferencecheck.entity.ConferenceAddressExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ConferenceAddressMapper {
    long countByExample(ConferenceAddressExample example);

    int deleteByExample(ConferenceAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ConferenceAddress record);

    int insertSelective(ConferenceAddress record);

    List<ConferenceAddress> selectByExample(ConferenceAddressExample example);

    ConferenceAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ConferenceAddress record, @Param("example") ConferenceAddressExample example);

    int updateByExample(@Param("record") ConferenceAddress record, @Param("example") ConferenceAddressExample example);

    int updateByPrimaryKeySelective(ConferenceAddress record);

    int updateByPrimaryKey(ConferenceAddress record);

    /**
     * 批量插入会议分会场信息
     *
     * @param conferenceAddressList
     * @return
     */
    int insertBatch(List<ConferenceAddress> conferenceAddressList);


    /**
     * 查询当前用户所有可签到的分会场
     *
     * @return
     */
    List<ConferenceAddress> selectBranchAllowSign(@Param("conventionerId") Integer conventionerId);
}